
	package eu.jpereira.trainings.designpatterns.creational.builder;

	import java.util.ArrayList;
	import java.util.List;

	

	public class Ereport {
	       
	        protected class Item {
	                public String name;
	                public int quantity;
	                public double price;
	        }
	       
	        protected String customerName = "";
	        protected String phoneNumber = "";
	        protected List<Item> soldItems = new ArrayList<Item>();
	       
	        public void setCustomerName(String customerName) {
	                this.customerName = customerName;
	               
	                
	        }
	       
	        public void setCustomerPhone(String phoneNumber) {
	                this.phoneNumber = phoneNumber;
	               
	              
	        }
	       
	        public void addItem(String name, int quantity, double price) {
	                Item item = new Item();
	                item.name = name;
	                item.quantity = quantity;
	                item.price = price;
	                soldItems.add(item);
	               
	               
	        }
	       
	        
	       
	}
	
	

